package com.woniu.market_stall_web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

import java.util.TimeZone;

@SpringBootApplication
@MapperScan(value = "com.woniu.market_stall_web.mapper")
@EnableTransactionManagement
@EnableCaching
@EnableWebSocket
public class MarketStallWebApplication {

    public static void main(String[] args) {
        try{

            SpringApplication.run(MarketStallWebApplication.class, args);

            //设置时区
//            TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));


        }catch (Exception e){
            e.printStackTrace();
        }

    }

}
